<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddUser extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		DB::table('user')->insert(array('username' => 'tronghieu',
										'password' => '123456',
										'email' => 'programming.iter@gmail.com',
										'level' => 'admin'
									  ));
		DB::table('user')->insert(array('username' => 'trongnghia',
										'password' => '123456',
										'email' => 'programming.iter@gmail.com',
										'level' => 'member'
									  ));
		DB::table('user')->insert(array('username' => 'nguyendiem',
										'password' => '123456',
										'email' => 'programming.iter@gmail.com',
										'level' => 'member'
									  ));
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		DB::table('user')->where('username','=','tronghieu')->delete();
		DB::table('user')->where('username','=','trongnghia')->delete();
		DB::table('user')->where('username','=','nguyendiem')->delete();
	}

}
